﻿using Abp.Application.Services;
using FwProject.ShopApplication;
using FwProject.ShoppingMall.EventAdvertising;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using X.PagedList;

namespace FwProject.EventAdvertising.Dto
{
    /// <summary>
    /// 广告位管理
    /// </summary>
   public interface IShopAdLocationAppService: IApplicationService
    {
        #region 广告位管理
        /// <summary>
        /// 创建一个广告位
        /// </summary>
        /// <param name="Input"></param>
        /// <returns></returns>
        Task<Guid> CreateShopAdLocation(ShopAdLocationInput Input);
        /// <summary>
        /// 修改一个广告位
        /// </summary>
        /// <param name="Id">主键</param>
        /// <param name="Input">模型</param>
        /// <returns></returns>
        Task EditShopAdLocation(Guid Id, ShopAdLocationInput Input);
        /// <summary>
        /// 删除一个广告位
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task DeleteAdLocation(Guid Id);
        /// <summary>
        /// 分页获取广告位
        /// </summary>
        /// <param name="page">页数</param>
        /// <param name="pageSize">条数</param>
        /// <param name="adTypeLocation">广告位</param>
        /// <returns></returns>
        Task<IPagedList<ShopAdLocationDto>> GetPageList(int page, int pageSize, AdTypeLocation? adTypeLocation);
        #endregion

        #region 后台管理

        /// <summary>
        /// 后台管理-获取所有广告位置（添加广告时使用）
        /// </summary>
        /// <returns></returns>
        Task<List<ShopAdLocationDto>> GetListAsync();

        /// <summary>
        /// 后台管理-获取广告位输入模型
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ShopAdLocationInput> GetEnterDtoAsync(Guid id);

        /// <summary>
        /// 后台管理-广告位管理列表（Layui）
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="keyword"></param>
        /// <returns></returns>
        Task<LayerDataBaseDto> GetShopAdLocationLayerDataAsync(int page, int limit,string keyword);
        #endregion
    }
}
